package M807;
//第十三题
public class m80713 {
    public static void main(String[] args) {
        for (int i=1;i<=1000;i++){
            int sw=(i/10)%10;
            if(sw==3&&i%7==0&&i%11==0){
                System.out.println(i);
            }
        }
    }
}
